<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>登录--lnmp-web管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" />
    <link rel="stylesheet" media="screen" href="css/login.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/layer/layer.js"></script>
</head>
<body>
<div id="particles-js">
    <div class="login">
        <div class="login-top">lnmp-web管理系统</div>
        <div class="login-center clearfix">
            <div class="login-center-img"><img src="image/login/name.png"/></div>
            <div class="login-center-input">
                <input type="text" name="username" placeholder="请输入您的用户名"/>
                <div class="login-center-input-text">用户名</div>
            </div>
        </div>
        <div class="login-center clearfix">
            <div class="login-center-img"><img src="image/login/password.png"/></div>
            <div class="login-center-input">
                <input type="password" name="password" placeholder="请输入您的密码"/>
                <div class="login-center-input-text">密码</div>
            </div>
        </div>
        <div class="login-button">登录</div>
    </div>
    <div class="sk-rotating-plane"></div>
</div>
<script src="js/particles.min.js"></script>
<script src="js/particles.conf.js"></script>
<script type="text/javascript">
    $('#particles-js .login-button').click(function () {
        $(".login").addClass('active');
        setTimeout(function () {
            $(".sk-rotating-plane").addClass('active');
            $(".login").hide();
            $.post(window.location.href,$('.login input').serialize(),function (res) {
                if(res.code){
                    location.href = location.origin
                }else{
                    layer.msg(res.message)
                    $(".login").removeClass('active').show()
                    $(".sk-rotating-plane").removeClass('active')
                }
            });
        }, 10)
    });
</script>
</body>
</html>